package me.tuyou.mybatis.test.interfaces.vo;

/**
 * @author tuyou_cd
 * @date 2021/4/13 17:50
 */
public class Page {

    public static final int NO_ROW_OFFSET = 0;
    public static final int NO_ROW_LIMIT = Integer.MAX_VALUE;
    public static final Page DEFAULT = new Page();

    private final int offset;
    private final int limit;

    public Page() {
        this.offset = NO_ROW_OFFSET;
        this.limit = NO_ROW_LIMIT;
    }

    public Page(int offset, int limit) {
        this.offset = offset;
        this.limit = limit;
    }

    public int getOffset() {
        return offset;
    }

    public int getLimit() {
        return limit;
    }
}
